package com.formation.tocea.library.client.listener;

import com.formation.tocea.library.client.ui.form.AddBookForm;
import com.formation.tocea.library.client.ui.main.Menu;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.RootPanel;

public class ShowAddBookFormListener implements ClickHandler {
	public void onClick(ClickEvent event) {
		Menu menu = (Menu) RootPanel.get("menu").getWidget(0);
		menu.add(new AddBookForm());
	}
}
